package com.atguigu.eduService.client;

import com.atguigu.eduService.client.impl.UcenterClientImpl;
import com.atguigu.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Summerday
 */
@Component
@FeignClient(name = "service-msm",fallback = UcenterClientImpl.class)
public interface UcenterClient {


    @GetMapping("/eduMsm/user/{id}")
    public UcenterMemberVo getInfoById(@PathVariable String id);
}
